
projectName=chuangdain


echo "prepare..."
rm -rf $projectName

echo "build..."
yarn build

mkdir $projectName

mv dist latest
echo "mv..."
mv latest $projectName/

echo "tar..."
tar -zcvf $projectName.tar.gz  $projectName &>/dev/null

echo "clean..."
rm -rf $projectName

echo "build done"
echo $version